laravel blade check if yielded content exists

146

laravel blade check if yielded content exists -

<title>
    @if(View::hasSection('title'))
        @yield('title')
    @else
        Static Website Title Here
    @endif
</title>

Comments

Submit
0 Comments